package com.ceilcell.wx.atservice.controller;

import com.ceilcell.wx.atservice.model.AccessToken;
import com.ceilcell.wx.atservice.service.AccessTokenService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2017/4/20.
 */
@RestController
public class AccessTokenController {

    @Autowired
    AccessTokenService accessTokenService;

    @RequestMapping("/accesstoken")
    public AccessToken AccessToken(){
        return accessTokenService.findAccessTokenById(1);
    }
}
